package com.mukefile.dto;

import java.io.File;

/**
 * 封装文件对象数据
 * @author xinke.huang@hand-china.com
 * @version 1.0
 * @date 2021/2/9
 */
public class KnsFile {
    /**
     * 文件对象
     */
    private File file;
    /**
     * 分片序号
     */
    private Integer chunk;
    /**
     * 分片总数
     */
    private Integer chunks;
    /**
     * 真实文件名
     */
    private String name;
    /**
     * 文件uuid
     */
    private String uuid;

    public KnsFile() {
    }

    public KnsFile(File file, Integer chunk, Integer chunks, String name, String uuid) {
        this.file = file;
        this.chunk = chunk;
        this.chunks = chunks;
        this.name = name;
        this.uuid = uuid;
    }

    public File getFile() {
        return file;
    }

    public void setFile(File file) {
        this.file = file;
    }

    public Integer getChunk() {
        return chunk;
    }

    public void setChunk(Integer chunk) {
        this.chunk = chunk;
    }

    public Integer getChunks() {
        return chunks;
    }

    public void setChunks(Integer chunks) {
        this.chunks = chunks;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Override
    public String toString() {
        return "KnsFile{" +
                "file=" + file +
                ", chunk=" + chunk +
                ", chunks=" + chunks +
                ", name='" + name + '\'' +
                ", uuid='" + uuid + '\'' +
                '}';
    }
}
